Allow manually defining symbol visibility in static builds. (#313)
authorDymphna <EmmaJaneBonestell@gmail.com>
Sat, 15 Nov 2025 01:42:42 +0000 (19:42 -0600)
committerGitHub <noreply@github.com>
Sat, 15 Nov 2025 01:42:42 +0000 (20:42 -0500)
utf8proc.h

index 569a21dcdae76c880afacd755656c799ba4daac2..76199496fdc0f5636d3b34db002f407b0a178e70 100644 (file)
@@ -121,7 +121,9 @@ typedef bool utf8proc_bool;
 #include <limits.h>
 
 #ifdef UTF8PROC_STATIC
-#  define UTF8PROC_DLLEXPORT
+#  ifndef UTF8PROC_DLLEXPORT
+#    define UTF8PROC_DLLEXPORT
+#  endif
 #else
 #  ifdef _WIN32
 #    ifdef UTF8PROC_EXPORTS